package cn.itsub.proxy.server.app.mapper;

import cn.itsub.proxy.server.app.entity.Tunnel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Java夏老师
 * @since 2021-09-20
 */
public interface TunnelMapper extends BaseMapper<Tunnel> {
    Tunnel selectByWanPort(int wanPort);
    List<Tunnel> selectByUserId(int userId);
    List<Tunnel> selectByClientKey(@Param("clientKey") String clientKey);
    List<Tunnel> selectByClientId(@Param("clientId") int clientId);
}
